package com.netease.nie.constants;

/**
 * 
 * @author wwbn3695
 * @createDate June 20,2016
 * 
 */
public enum BusinessConstants {

	GOODS_NOT_EXISTS(5010001, "goods not exists"), GOODS_HAD_DELETED(5010002,
			"goods had been deleted"), GOODS_HAD_BEEN_PUT_OFF(5010003,
			"goods had been put off"), NO_VALID_GOODS_CATEGORY(5010004,
			"no valid goods category"), GOODS_IMAGE_NOT_EXISTS(5010005,
			"goods image not exists"), GOODS_STOCK_EMPTY(5010006,
			"goods stock is empty"), GOODS_PUT_ON_STATUS_NOT_EXISTS(5010007,
			"goods put on status not exists"), GOODS_PUT_OFF_TIME_NOT_EXISTS(
			5010008, "goods put off time not exists"), GOODS_CONFIG_NOT_EXISTS(
			5010009, "goods config not exists"), GOODS_PERIOD_REMAIN_PT_ERROR(
			5010010, "goods_period_remain_pt_error"), GOODS_PERIOD_PERSON_TIME_OVERLIMIT(
			5010011, "goods period person time overlimit"), INVALID_USER_ID(
			5020001, "invalid user id"), USER_NOT_LOGIN(5020002,
			"user not login"), USER_LOGIN_FAIL(5020003, "user login fail"), USER_NOT_EXISTS(
			5020004, "user not exists"), USER_ID_ILLEGAL(5020005,
			"user id illegal"), USER_IP_ILLEGAL(5020006, "user ip illegal"), EXCHANGE_CODE_HAD_BEEN_USED(
			5030001, "exchange code had been used"), EXCHANGE_CODE_NOT_EXISTS(
			5030002, "exchange code not exists"), PAGE_PARAM_ILLEGAL(5040001,
			"page param illegal"), COLUMN_ILLEGAL(5050001,
			"column info is illegal"), CREDIT_NOT_ENOUGH(5060001,
			"credit not enough"), LEVLE_NOT_ENOUGH(5060002, "level not enough"), CREDIT_NOT_EXISTS(
			5060003, "credit not exists"), CURRENT_DAY_BUYING_COUNT_OVER_LIMIT(
			5060003, "current day buying count over limit"), TOTAL_BUYING_COUNT_OVER_LIMIT(
			5060004, "total buying count over limit"), LOG_TYPE_ILLIGAL(
			5070001, "log type illigal"), ORDER_NOT_EXISTS(5080001,
			"order not exists"), ORDER_TRACE_NOT_EXISTS(5080002,
			"order trace not exists"), ORDER_ADDRESS_NOT_EXISTS(5080003,
			"order address not exists"), LOGISTICS_NOT_EXISTS(5080004,
			"logistics not exists"), PROMPT_NOT_EXISTS(50090001,
			"prompt not exists"), DRAW_LOTTERY_ACTIVITY_NOT_EXISTS(50090002,
			"draw lottery activity not exists"), DRAW_LOTTERY_NOT_AVAILABLE(
			50090003, "draw lottery activity not available");

	private int code;

	private String msg;

	private BusinessConstants(int code, String msg) {
		this.code = code;
		this.msg = msg;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}
}
